<template>
	<el-form ref="formObj" :model="props.formData" :rules="rules" label-width="80px">
		<el-form-item label="楼层" prop="roomFloor">
			<el-input v-model="props.formData.roomFloor" placeholder="请输入楼层" />
		</el-form-item>
		<el-form-item label="房间号" prop="roomNo">
			<el-input v-model="props.formData.roomNo" placeholder="请输入房间号" />
		</el-form-item>
		<el-form-item>
			<el-button type="primary" @click="props.save">保存</el-button>
		</el-form-item>
	</el-form>
</template>

<script setup>
import { ref } from 'vue'
const props = defineProps(['formData', 'rules', 'save'])
const formObj = ref()
defineExpose({
	formObj
})
</script>

<style scoped lang="scss">
</style>